﻿using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.OfficeArt
{
    internal class OfficeArtIDCL
    {
        private uint _cspidCur;
        private uint _dgid;

        public OfficeArtIDCL(uint cspidCur, uint dgid)
        {
            _cspidCur = cspidCur;
            _dgid = dgid;
        }

        public OfficeArtIDCL()
        {
        }

        public static int ByteLength
        {
            get { return 8; }
        }

        public void Read(BinaryReader reader)
        {
            _dgid = reader.ReadUInt32();
            _cspidCur = reader.ReadUInt32();
        }

        public void Write(BinaryWriter writer)
        {
            writer.Write(_dgid);
            writer.Write(_cspidCur);
        }
    }
}